# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo0931
# Description:  异常捕捉
# Author:       yzl
# Date:         2019-03-20
#-------------------------------------------------------------------------------

num = 100

a_list = [2,23,45,69, 'p']

def chfa(*args):
    for item in args:
        print(num / item)

if __name__ == '__main__':
    try:
        chfa(*a_list)
    except AttributeError as e:
        print('AttributeError',e)
    except Exception as e:
        print('Exception',e)
    except:
        print('未知异常')

    # 后面的语句可以执行
    print('列表为:',a_list)